Add githubPullRequests.createInBrowser setting to open PR creation in browser#8234
Add githubPullRequests.createInBrowser setting to open PR creation in browser#8234
githubPullRequests.createInBrowser setting to open PR creation in browser#8234Conversation
…tton Co-authored-by: alexr00 <[email protected]>
Co-authored-by: alexr00 <[email protected]>
Co-authored-by: alexr00 <[email protected]>
Co-authored-by: alexr00 <[email protected]>
alexr00
left a comment
There was a problem hiding this comment.
@copilot no need to change the current create view. Just add a setting githubPullRequest.createInBrowser, which defaults to false. When set to true, the existing "create" command should open the browser with the appropriate PR URL for the current branch and correct base branch, using the same base branch logic that the "create" view does to pick the starting base branch.
Co-authored-by: alexr00 <[email protected]>
Done in f60aad2. I've changed the approach:
|
Co-authored-by: alexr00 <[email protected]>
githubPullRequests.createInBrowser setting to open PR creation in browser
Co-authored-by: alexr00 <[email protected]>
Done in d72d7ab. Reverted all create view related changes:
The PR now only contains the setting and the logic in reviewManager.ts that checks the setting when the |
Add
githubPullRequests.createInBrowserSettingThis PR adds a setting that changes the behavior of the existing "Create Pull Request" command to open GitHub in the browser instead of showing the create view.
Implementation
Setting (
package.json):githubPullRequests.createInBrowserboolean setting (default: false)pr.createcommand opens GitHub in browser instead of showing the create viewBackend (
src/view/reviewManager.ts):createPullRequest()to check the setting using CREATE_IN_BROWSER constantopenCreatePullRequestInBrowser()method that:{normalizedHost}/{owner}/{repo}/compare/{base}...{head}Constants (
src/common/settingKeys.ts):CREATE_IN_BROWSERconstantChanges
githubPullRequests.createInBrowsersettingpr.createcommand to check setting and open browser when trueOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.